package com.zhiyiang.service.order;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zhiyiang.Vo.OrderVO;
import com.zhiyiang.Vo.PageResult;
import com.zhiyiang.pojo.Orders;

import java.util.List;
import java.util.Map;

public interface OrderService {
    List<Orders> findAll();

    Page<OrderVO> getAllOrders(Integer current, Integer size);

    Page<Orders> getOrders(String query, Integer current, Integer size);

    Boolean addOrders(OrderVO orders);

    Boolean updateOrders(String id, Orders orders);

    Boolean deleteOrder(String id);

    Orders getOrders(Integer id);

    Page<OrderVO> findUserByPage(String usercode,String query,Integer pagenum,Integer pagesize);

    Boolean updateStatus(Integer roomcode,String orderhotel);

    OrderVO getNow(Integer id);

    Boolean changeStatus(Integer roomcode, String orderhotel);

    Page<OrderVO> getLoginOrder(String usercode, Integer current, Integer size);

    Page<OrderVO> examOrder(String usercode, Integer current, Integer size);

    Boolean examNow(Integer roomcode, String orderhotel);

    Boolean noexamNow(Integer roomcode, String orderhotel);

    Boolean reseOrders(OrderVO orders);

    Page<OrderVO> getHotelOrder(String query, Integer current, Integer size);

    Page<OrderVO> getOrderByHotel(String usercode, String query, Integer current, Integer size);

    List<Object> getOrderData(String usercode);
}
